package com.easy.dao;

import com.easy.bean.User;
import com.easy.utils.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserDao {
    List<User> getUserByUsername(User user);

    List<User> getUserByPhoneNumber(User user);

    User getUserByID(int id);

    List<User> getUser(@Param("user") User user,@Param("page") Page page);
    int getUserCount(@Param("user") User user);

    int delUser(int id);

    int addUser(User user);

    int editUser(User user);
}
